// 封装所有与商品相关的数据请求
import http from '@/utils/http.js'
// 获取商品列表请求
export const getGoodsListAPI = (params)=>{
    return http({
        url:'/admin/pro/list',
        method:'get',
        params
    })
}
// 修改商品是否推荐或者秒杀接口
export const changeGoodsAPI = (data)=>{
    return http({
        url:'/admin/pro/updateFlag',
        method:'post',
        data
    })
}
// 获取商品分类
export const getGoodsCategoryAPI = (params)=>{
    return http({
        url:'/admin/pro/getCategory',
        method:'get',
        params
    })
}
// 搜索关键词列表
export const getGoodsSearchAPI = (data)=>{
    return http({
        url:'/admin/pro/searchPro',
        method:'post',
        data
    })
}
